-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF: Series.to_numpy with float dtype and na_value=np.nan #52430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PERF: Series.to_numpy with float dtype and na_value=np.nan #52430
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Actually, what about |
EA dtypes dispatch to their own implementation of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks @lukemanley |
…v#52430) * PERF: Series.to_numpy with dtype=float and na_value=np.nan * whatsnew * add space
doc/source/whatsnew/v2.1.0.rst
file if fixing a bug or adding a new feature.Avoids filling na values with
np.nan
if the array is already a numpy float dtype. (DataFrame
has a similar optimization inBlockManager.as_array
)ASV added: